Delete file in python Using the pathlib module

40

import pathlib
file=pathlib.path("test/new_file.txt")
file.unlink()

Comments

Submit
0 Comments